/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PInicio.java
 *
 * Created on Jun 16, 2012, 7:00:04 PM
 */
package vistas;

/**
 *
 * @author Stev
 */
public class PInicio extends javax.swing.JPanel {
    String IP_RE;
    String IP_PP;
    
    /** Creates new form PInicio */
    public PInicio() {
        initComponents();
        
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jText_IP_RE = new javax.swing.JTextField();
        jText_IP_PP = new javax.swing.JTextField();
        jButtonIPsListas = new javax.swing.JButton();

        setMaximumSize(new java.awt.Dimension(433, 291));
        setMinimumSize(new java.awt.Dimension(433, 291));
        setPreferredSize(new java.awt.Dimension(433, 291));

        jTextArea1.setColumns(20);
        jTextArea1.setRows(5);
        jTextArea1.setText("Bienvenido al sistema de Registro\nElectoral de los Sistemas Distribuidos.\n\nEscoga la opción que necesite.");
        jScrollPane1.setViewportView(jTextArea1);

        jLabel1.setText("IP para Servidor Electoral");

        jLabel2.setText("IP para Servidor de Partidos Políticos");

        jText_IP_RE.setText("127.0.0.1");

        jText_IP_PP.setText("127.0.0.1");

        jButtonIPsListas.setText("Listo");
        jButtonIPsListas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonIPsListasActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(35, 35, 35)
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 327, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(62, 62, 62)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel2)
                            .addComponent(jLabel1)
                            .addComponent(jText_IP_RE)
                            .addComponent(jText_IP_PP))
                        .addGap(49, 49, 49)
                        .addComponent(jButtonIPsListas)))
                .addContainerGap(71, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(26, 26, 26)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jText_IP_RE, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(20, 20, 20)
                        .addComponent(jLabel2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jText_IP_PP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(52, 52, 52)
                        .addComponent(jButtonIPsListas)))
                .addContainerGap(38, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents
    String getIP_PP(){
       return IP_PP;
    }
    
    String getIP_RE(){
        return IP_RE;
    }
    
    private void jButtonIPsListasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonIPsListasActionPerformed
        IP_PP=jText_IP_PP.getText().trim();
        IP_RE=jText_IP_RE.getText().trim();
        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonIPsListasActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonIPsListas;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JTextField jText_IP_PP;
    private javax.swing.JTextField jText_IP_RE;
    // End of variables declaration//GEN-END:variables
}
